package com.example.cpoopc.helloretrofit.api;/**
 * Created by cpoopc on 2015/4/17.
 */

import com.example.cpoopc.helloretrofit.bean.PostListEntity;
import com.example.cpoopc.helloretrofit.bean.PostListRequestBody;

import org.json.JSONObject;

import retrofit.Callback;
import retrofit.http.Body;
import retrofit.http.Field;
import retrofit.http.FormUrlEncoded;
import retrofit.http.Headers;
import retrofit.http.POST;

/**
 * User: cpoopc
 * Date: 2015-04-17
 * Time: 11:02
 * Ver.: 0.1
 */
public interface ForumService {
    @FormUrlEncoded
    @POST("/mg/api/aid/forum_topiclist")
    @Headers({"CLOUDID:starapp","APPID: 233","CLIENTTYPE: Android","apikey: 9505cb5ae8c4d386bc259bee570f7927","CUID: 867192130","SID: u4r6pdvj5e2ot8d6pi39sr0au0","TAGID: 1"})
    void getPostList(@Field("type") String type, @Field("city") String city, @Field("max_ts") String max_ts, @Field("min_ts") String min_ts, @Field("page_size") String page_size,
                     @Field("long") String longth, @Field("lat") String lat, Callback<PostListEntity> callback);

    @POST("/mg/api/aid/forum_topiclist")
    @Headers({"CLOUDID:starapp","APPID: 233","CLIENTTYPE: Android","apikey: 9505cb5ae8c4d386bc259bee570f7927","CUID: 867192130","SID: u4r6pdvj5e2ot8d6pi39sr0au0","TAGID: 1"})
    void getPostList(@Body PostListRequestBody body,Callback<PostListEntity> callback);
}
